package com.ruoyi.util.functioncs;

import java.util.function.Function;

public class FuctionDemo {

//	public static void main(String[] args) {
//		convert("100", s -> Integer.parseInt(s), integer -> String.valueOf(integer + 100));
//	}

	@SuppressWarnings("unused")
	private static void convert(String s, Function<String, Integer> fun1, Function<Integer, String> fun2) {
		Integer s1 = fun1.apply(s);
		String s2 = fun2.apply(s1);
		System.out.println(s2);
		String apply = fun1.andThen(fun2).apply(s);
		System.out.println(apply);
	}

}
